Reply
please need help
Old 06-28-2006, 09:02 AM please need help
Junior Talker

Posts: 1
I have to understand what onClick=goToUrl() means and should I create my own method goToUrl()
mishunia is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 06-28-2006, 10:07 AM Re: please need help
Silent77's Avatar
Ultra Talker

Posts: 255
Name: Silent
Location: Ohio
wouldnt it be better to just set up a standard a href link?
__________________
Firefox
rediscover the web
Get Firefox today it's free! Down with internet explorer!
Silent77 is offline
Reply With Quote
View Public Profile Visit Silent77's homepage!
 
Old 06-28-2006, 08:22 PM Re: please need help
snoz's Avatar
Novice Talker

Posts: 8
Name: Bruno Bernardino
better and probably with less accessibility problems, as javascript isn't always on on most browsers for people with special needs...

If you want to open a pop-up window, use something like:

Quote:
<script language="JavaScript" type="text/javascript">
function goToUrl(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,men ubar=0,resizable=1,width=600,height=400,align=cent er,top=100,left=300');");
</script>
and on <a> you'd put <a href="javascript:goToUrl('http://blablabla')">linkname</a> or <a href="javascript:;" onClick="goToUrl('htpp://blablabla')">linkname</a>
__________________
<?php if ($youreaniceperson) echo $my->persInfo(); else die('Go away!');?>
snoz is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to please need help
 

Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12076 seconds with 12 queries