Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Community Discussions (All other subjects)
 Javascript Help?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

JJenson
Advanced Member

USA
2121 Posts

Posted - 31 January 2008 :  10:48:01  Show Profile  Visit JJenson's Homepage
I was told to do what I want to do I want to create a pop up but this doesn't seem right. This is what I want to do.

I have a link:


<td width="68" class="faqOff" onmouseover="this.className='faqOn'" onmouseout="this.className='faqOff'" onclick="window.location='pdf/faq.pdf'" style="cursor:pointer;">FAQ</td>


I want this to open up a whole new window kind of like target=_blank Id there a easy way to do this to make the link above open a new window?

Thanks

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 31 January 2008 :  10:54:38  Show Profile
Use the window.open() method for the onClick. See here: http://developer.mozilla.org/en/docs/DOM:window.open

LOL @ the class="faqOff".

Support Snitz Forums

Edited by - Davio on 31 January 2008 10:55:07
Go to Top of Page

JJenson
Advanced Member

USA
2121 Posts

Posted - 31 January 2008 :  11:02:59  Show Profile  Visit JJenson's Homepage
But from this I can't use something like this:

onclick="window.open(pdf/faq.pdf);"

I actually have to create a function with all paramaters to open it up so in essence I do have to create a popup function to be able to do this there is not simple target=_blank correct?

Thanks for the laugh at my names I have to make it simple for me

Edited by - JJenson on 31 January 2008 11:03:52
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 31 January 2008 :  11:07:26  Show Profile
Only <A> tag carries the target="_blank" tag to open a link in a new window. Can't open a <TD> tag in a window. So you will have to use javascript.

No need to create a separate function. Can put all the info in the onClick="".

Support Snitz Forums
Go to Top of Page

JJenson
Advanced Member

USA
2121 Posts

Posted - 31 January 2008 :  11:16:16  Show Profile  Visit JJenson's Homepage
ALright I got it. I was missing the page title attribute then saw that was required.

onclick="window.open('pdf/faq.pdf', 'FAQ');"

Thanks Davio
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.17 seconds. Powered By: Snitz Forums 2000 Version 3.4.07