Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Detect click in frame
Old 08-24-2006, 11:28 AM Detect click in frame
Experienced Talker

Posts: 44
Name: Jonathan Roy
Location: Montreal, Quebec, Canada
Trades: 0
Hi,
Do you guys know a script in javascript that detects a click on a link in a frame.
Like in this case the page1.html detects a click in page2.html and page1.html leads to page3.html in the case of a click.
<HTML>
<HEAD>
<TITLE>A simple frameset document</TITLE>
</HEAD>
<FRAMESET rows="100, *">
<FRAME src="page1.html">
<FRAME src="page2.html">
</FRAMESET>
</HTML>
Thank,
Jonroy
jonroy is offline
Reply With Quote
View Public Profile Visit jonroy's homepage!
 
 
Register now for full access!
Old 08-25-2006, 08:25 AM Re: Detect click in frame
saadatshah's Avatar
Extreme Talker

Posts: 215
Name: Syed Saadat Ali
Location: Lahore, Pakistan
Trades: 0
What do you want to accomplish from this? Please elaborate
__________________
- -- --- ---- ----- ------ ------- ---------------
If you have knowledge, let others light their candles in it.
saadatshah is offline
Reply With Quote
View Public Profile Visit saadatshah's homepage!
 
Old 08-25-2006, 10:24 AM Re: Detect click in frame
JA1
JA1's Avatar
Novice Talker

Posts: 6
Name: Jane Alford
Location: Meath, Ireland
Trades: 0
You probably want to use the onClick event handler - call a function

onClick="DoSomething(this)"

J.
JA1 is offline
Reply With Quote
View Public Profile
 
Old 08-25-2006, 05:58 PM Re: Detect click in frame
kIDJOE's Avatar
Extreme Talker

Posts: 186
Location: Hollywood, CA
Trades: 0
OnMouseDown="alert('I have been clicked')" or onClick... just add it to the FRAME see if it works..if not then create a DIV that covers the entire frame and put <div.... Onclick="alert('FUNCTION')" or onmouseDown... that works for sure.. but there may be a posibility that works direct on the frameset.

good luck
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

kIDJOE is offline
Reply With Quote
View Public Profile Visit kIDJOE's homepage!
 
Reply     « Reply to Detect click in frame
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 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.57923 seconds with 12 queries