Frameset page

M

Mariame

Hi Everyone,
I have a frameset Web Page contains 2 frame , first one have a banner, logo
and menu
second frame called "content" and it appears in it all page in site
is it possible that i send a url that opens a choosen page in the content
frame or i have always to open the default page that called in framset
Thx in Adv
 
M

Mariame

Ye
Is it possible when i send a url determine the target frame using script or
VB ???????????????????
 
R

rajagopalp

you can use this function..
pass the name of frame for dest variable..

function doTargetURL(url, dest) {
if (document.all!=null) {
var elTarget = document.all.targetURL
// Setup the anchor
elTarget.href = url
elTarget.target = dest
// Click the anchor
elTarget.click()
}
else // Default to new window
window.open(url)
}

rajagopal
 
M

Mariame

Thx for ue reply
but i want to setup the target page in the href
the main page is "index.aspx" and the target that i want to open is
"main.aspx"
when i write the link : "<a href ="?.aspx"> Main Page </a>
what i have to write in the href to open the page with the a target
main.aspx not index.aspx????????????
 
R

rajagopalp

The function code relies on an anchor with the ID of targetURL. On your
page you need to add an empty anchor with an ID of targetURL. This
anchor will have no effect on the rendering of the document and should
be the first element in the body of the document:

<A STYLE="display: none" ID=targetURL></A>

then

<a ONCLICK="doTargetURL('main.aspx',
'_self')">Main Page </a>



rajagopal
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,001
Messages
2,570,249
Members
46,847
Latest member
FlorrieSha

Latest Threads

Top