Current location: Hot Scripts Forums » General Web Coding » HTML/XHTML/XML » Popup with #


Popup with #

Reply
  #1 (permalink)  
Old 10-19-05, 01:47 PM
Y3000's Avatar
Y3000 Y3000 is offline
Newbie Coder
 
Join Date: Nov 2004
Posts: 68
Thanks: 0
Thanked 0 Times in 0 Posts
Popup with #

Hi,

I have noticed this, but not really looked into it til now. I was wondering how you can open a featureless popup of a specific size using #

Any help would be much apreciated.

Thanks
__________________
Adam
Reply With Quote
  #2 (permalink)  
Old 10-19-05, 02:04 PM
Keith's Avatar
Keith Keith is offline
Community Liaison
 
Join Date: Feb 2004
Posts: 1,232
Thanks: 1
Thanked 11 Times in 11 Posts
Technically, the # has nothing to do with it. It's just used as a filler for the href="" attribute. The actual pop-up is initiated with javascript.

Code:
<a href="#" onclick="window.open('page.html', 'newWin','menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,width=250,height=250'); return false;">Text to click on</a>
That will open "page.html" in a new window named "newWin", unable to be resized with everything turned off and a width and height of 250 pixels. You can turn window attributes on and off as you desire, it's pretty self explanatory.

In this case I'd add "return false;" so if you've scrolled down the page a bit it won't shoot you back to the top.

Last edited by Keith; 10-19-05 at 02:51 PM.
Reply With Quote
  #3 (permalink)  
Old 10-19-05, 02:22 PM
Y3000's Avatar
Y3000 Y3000 is offline
Newbie Coder
 
Join Date: Nov 2004
Posts: 68
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks a lot
__________________
Adam
Reply With Quote
  #4 (permalink)  
Old 10-19-05, 02:26 PM
karlcore karlcore is offline
Newbie Coder
 
Join Date: Nov 2003
Posts: 82
Thanks: 0
Thanked 0 Times in 0 Posts
So what does a user get if they have javascript disabled?
"#" is a fragment identifier separator.

How about this instead?
http://karlcore.com/articles/article.php?id=7
"A More Accessible Pop-up Window"
Reply With Quote
  #5 (permalink)  
Old 10-19-05, 02:51 PM
Keith's Avatar
Keith Keith is offline
Community Liaison
 
Join Date: Feb 2004
Posts: 1,232
Thanks: 1
Thanked 11 Times in 11 Posts
Well that goes without saying.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
change form field value from popup shaggystyle JavaScript 1 07-26-05 02:39 PM
Using Popup Links in PHP sixflagsga PHP 0 02-16-05 05:49 PM
javascript popup not working???? heathercash JavaScript 2 04-27-04 03:19 AM
popup select background dtm JavaScript 0 01-05-04 03:45 PM
Popup in a Popup - Please help! Static JavaScript 1 12-14-03 11:32 AM


All times are GMT -5. The time now is 08:49 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.