Code help

T

Thomas R Grassi Jr

I have a page I designed that is a cant remember the correct name but it is
three sections combined into one web page

I have a side page, a banner page and then the main page all formatted as
one page.

Now the question is on the main page I have hoover buttons which are
hyperlinks to a page so that page opens in the main page frame. I have back
and return buttons defined on the hyperlink pages when they hit back it
takes them back to the main page frame no problem
It is the return that is not working properly for me.

the return has http://www.tomtest.com but what it does it bring up
www.tomtest.com in the main page frame leaving the side page and the banner
on the screen

Is there any asp function that will clear the frame to go back to a site in
full view?

My code is in asp that was designed under front page

here is the code I am using

</head>
<body>
<form>
<p align="center">
<input type="button" value="Print" Onclick="print()" ;> <input type="button"
value="BACK!"onClick="history.back();">
<input type=button value="Return" onClick="goToURL()"></form>
&nbsp;</p>
</form>
</body>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function goToURL() { window.location = "http://www.tomtest.com"; }
// End -->
</script>
</HEAD>
<BODY>

</html>


any ideas or thoughts?

Thanks

Tom
 
T

Thomas R Grassi Jr

Trevor

I was not posting the actual site names because my site is not available for
access yet. Waiting on DNS updates

The Java code in my asp page has the return button defined. I am looking for
some code that will bring the user back to the home page when they click
return button

Any ideas or help I will greatly appreciate it


Thanks

Tom
 
S

Stefan B Rusynko

1) They is nothing in your code to indicate any ASP
- ASP is server side code processed before the page is rendered by the browser
(so it can't be used to process a user selection in a page)
2) Your Html is malformed and used Javascript , not Java
It should be
<html>
<HEAD>
<SCRIPT LANGUAGE="JavaScript"> <!-- Begin
function goToURL() { window.location = "http://www.tomtest.com"; }
// End --> </script>
</HEAD>
<body>
<form>
<p align="center">
<input type="button" value="Print" Onclick="print()" ;>
<input type="button" value="BACK!" onClick="history.back();">
<input type=button value="Return" onClick="goToURL()"></form>
</p>
</form>
</body>
</html>


--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


|I have a page I designed that is a cant remember the correct name but it is
| three sections combined into one web page
|
| I have a side page, a banner page and then the main page all formatted as
| one page.
|
| Now the question is on the main page I have hoover buttons which are
| hyperlinks to a page so that page opens in the main page frame. I have back
| and return buttons defined on the hyperlink pages when they hit back it
| takes them back to the main page frame no problem
| It is the return that is not working properly for me.
|
| the return has http://www.tomtest.com but what it does it bring up
| www.tomtest.com in the main page frame leaving the side page and the banner
| on the screen
|
| Is there any asp function that will clear the frame to go back to a site in
| full view?
|
| My code is in asp that was designed under front page
|
| here is the code I am using
|
| </head>
| <body>
| <form>
| <p align="center">
| <input type="button" value="Print" Onclick="print()" ;> <input type="button"
| value="BACK!"onClick="history.back();">
| <input type=button value="Return" onClick="goToURL()"></form>
| &nbsp;</p>
| </form>
| </body>
| <HEAD>
| <SCRIPT LANGUAGE="JavaScript">
| <!-- Begin
| function goToURL() { window.location = "http://www.tomtest.com"; }
| // End -->
| </script>
| </HEAD>
| <BODY>
|
| </html>
|
|
| any ideas or thoughts?
|
| Thanks
|
| Tom
|
|
 

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

Top