hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : javascript popup question?
Reply

Programming Discussion Discussions related to web programming languages and other related issues. Topics may include configuration, optimization, practical usage and database connectivity.
Forum Jump

javascript popup question?

Reply Post New Thread In Programming Discussion Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 04-19-2005, 04:30 PM
angelic81 angelic81 is offline
Junior Guru
 
Join Date: Feb 2004
Location: NYC
Posts: 204

javascript popup question?


Hi I have 2 questions concerning javascript pop ups:

1) The following code is for a small pop up information window. I have the following javascript code inserted in the header:

function popwindow()
{
window.open
("../window.html","my_new_window","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=no, width=450, height=550")
}

And this script is in the body:

<a href="#" onClick="popwindow()">popup</a>

Now the script works fine but when you click on it it takes you to the top of the main page. This is annoying and if i take away the href="#" then the mouse over effect does not show and I want to have that (I want the hand with the finger pointing indicating it is a link).


2) This question is for a different pop up window that has a similar effect. Lets say my pop up has a lot of text and there's a lot of scrolling to do. How do I make it so when the pop up appears it will take my user to a specific part of the page (like in the middle or towards the end)?

Thanks

Reply With Quote


Sponsored Links
  #2  
Old 04-19-2005, 06:48 PM
VolkNet VolkNet is offline
Web Hosting Master
 
Join Date: Jun 2004
Location: Bay Area -USA
Posts: 1,738
I know this really isnt great programming practice but what you could do that works is just enter a #randomlettershere

Since the # isnt actually going anywhere, the page wont move.

Hope this helps.

__________________
<<< Please see Forum Guidelines for signature setup. >>>

Reply With Quote
  #3  
Old 04-19-2005, 09:39 PM
angelic81 angelic81 is offline
Junior Guru
 
Join Date: Feb 2004
Location: NYC
Posts: 204
great it works! I dont care as long as it is working lol

How about my other question concerning the popup location in new window?

Reply With Quote
Sponsored Links
Reply

Related posts from TheWhir.com
Title Type Date Posted
Facebook's Recently Acquired Mobile App Platform Parse Launches Web Hosting for Developers Web Hosting News 2013-05-08 10:49:17
Joomla Hosting Study Shows Speed, Uptime Top Selling Points of a Web Host Web Hosting News 2012-11-07 15:06:36
Rackspace Blog Looks at Easy Outsourcing for App Development Blog 2012-03-05 19:07:48
Blackberry the UnCloud Blog 2011-10-14 15:28:54
World Hosting Days Asia - Day 1 Blog 2011-06-10 03:06:20


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?