PDA

View Full Version : Quick Javascript Question


vorpalbunny
11-29-2006, 04:04 PM
there wasn't a javascript section to this forum, so this seemed the best area. If a browser has javascript disabled, I know it blocks out all background javascript actions, but will it also block a link opening up a specific size javascript window as well?

For instance link 1, is to open up a 400x400 window, does javascript blocking prevent it from opening? or will it at least give the user a prompt to allow them to open if they choose too?

Haven't touched javascript in quite a while, so I am trying to catch up on some things, and see if I need to find a workaround. Thanks for any information anyone can give me.

RysChwith
11-29-2006, 05:26 PM
JavaScript questions go in the Client-Side Scripting forum. I'll move it there for you.

To answer the actual question, though: yes. Disabling JavaScript prevents all JavaScript from running. This is why you generally allow such links to degrade. I recommend something like this:<a href = "..." onclick = "window.open( this.href, 'name', 'width=400,height=400' ); return false">Link</a>That'll use the JavaScript if available, but still follow the link if it's not.

Rys

vorpalbunny
11-30-2006, 10:24 AM
thx for the answer and I'll remember to post here in the future.......probably.