html problem
Page 1 of 1
html problem
#3
Re: html problem
Posted 21 June 2009 - 05:38 AM
#5
Re: html problem
Posted 21 June 2009 - 05:52 AM
Nykc, on 21 Jun, 2009 - 05:45 AM, said:
You would like to create a link to go to the home page.
Ok then all you would need to do is insert a link back to home page.
Ok then all you would need to do is insert a link back to home page.
<a href="index.html"><img src="logo.jpg" border="0"></a>
what if the page i wan to go back is
my main form in vb.net? that's my problem.
because it is not the html i wanna go back.
its my main form in vb. please help me.
#6
Re: html problem
Posted 23 June 2009 - 06:09 AM
You are going to need to post some code. Because I don't have the slightest idea of what you are trying to accomplish here.
Is this even an HTML question or a VB.NET problem? Is this a web form?
Is this even an HTML question or a VB.NET problem? Is this a web form?
This post has been edited by Nykc: 23 June 2009 - 06:10 AM
#7
Re: html problem
Posted 24 June 2009 - 05:02 AM
Nykc, on 23 Jun, 2009 - 06:09 AM, said:
You are going to need to post some code. Because I don't have the slightest idea of what you are trying to accomplish here.
Is this even an HTML question or a VB.NET problem? Is this a web form?
Is this even an HTML question or a VB.NET problem? Is this a web form?
uhmm..ok i will explain..i have my main form in vb.net and then i have my html page. my adviser wants to go back in my main form in vb once he click the home button in my html page.
here's my code in links in my html page.
<p><a href="baguio_home.html"> <img src="http://i43.tinypic.com/nf381c.jpg" alt="Home" width="146" height="51" /> </a> <br clear="all" /> <a href="baguio_gen.html"> <img src="http://i41.tinypic.com/dqp1mg.jpg" alt="General" width="146" height="47" /> </a> <br clear="all" /> <a href="baguio_diving.html"> <img src="http://i41.tinypic.com/o26x.jpg" alt="Diving" width="146" height="45" /> </a> <br clear="all" /> <a href="baguio_dine.html"><img src="http://i40.tinypic.com/34470o0.jpg" alt="Restaurants" width="146" height="36" border="0" /></a> <br clear="all" /> <a href="baguio_hotel.html"> <img src="http://i43.tinypic.com/2cqefk8.jpg" alt="Hotels and Resorts" width="146" height="38" border="0" /> </a> <br clear="all" /> <a href="baguio_attractions.html"> <img src="http://i42.tinypic.com/2mw5i4n.jpg" alt="Attractions" width="146" height="38" border="0" /> </a> <br clear="all" /> <a href="baguio_beaches.html"><img src="http://i41.tinypic.com/ogz5hw.jpg" alt="Beaches" width="146" height="50" border="0" /></a> <br clear="all" /> <a href="baguio_transportation.html"> <img src="http://i40.tinypic.com/2j8qbs.jpg" alt="Transportation" width="146" height="40" border="0" /> </a> <br clear="all" /> <a href="baguio_shopping.html"> <img src="http://i41.tinypic.com/eqvztx.jpg" alt="Shopping" width="146" height="41" border="0" /> </a> <br clear="all" /> <a href="baguio_festivals.html"> <img src="http://i43.tinypic.com/21oda9u.jpg" alt="Festivals" width="146" height="44" border="0" /></a> <br clear="all" />
what can i do now to go back in my main form in vb.net from my html page..pls can anyone help me.
thank you.
#8
Re: html problem
Posted 28 June 2009 - 06:12 AM
You mean you want the VBScript take you back to the home page?
Maybe you mean something like this:
If you want your VBscript button to take you back to the home page or any page you can do the following:
Code for your VBScript button, were instead of google.com you can put whatever page you want for instance the address of your home page, so when the user clicks the home button in your page he will be taken to the home page through the Sub that is called Button1_onclick:
Code for your input button:
And here is a working example of the code that was mentioned above:
I hope that this is what you are looking for and i hope it helps, good luck
Maybe you mean something like this:
If you want your VBscript button to take you back to the home page or any page you can do the following:
Code for your VBScript button, were instead of google.com you can put whatever page you want for instance the address of your home page, so when the user clicks the home button in your page he will be taken to the home page through the Sub that is called Button1_onclick:
<script LANGUAGE="VBScript"> <!-- Sub Button1_onclick document.location = "http://www.google.com" End Sub --> </SCRIPT>
Code for your input button:
<FORM><INPUT NAME="Button1" TYPE="BUTTON" VALUE="Click Here"></FORM>
And here is a working example of the code that was mentioned above:
<html> <head><title>VB Button Test</title> <script LANGUAGE="VBScript"> <!-- Sub Button1_onclick document.location = "http://www.google.com" End Sub --> </SCRIPT> </head> <body> <form><INPUT NAME="Button1" TYPE="BUTTON" VALUE="Click Here"></form> </body> </html>
I hope that this is what you are looking for and i hope it helps, good luck
This post has been edited by ayman_mastermind: 28 June 2009 - 06:25 AM
#9
Re: html problem
Posted 28 June 2009 - 08:41 AM
try this
<html> <title>CodeAve.com (java script: Close Window)</title> <body bgcolor="#FFFFFF"> <a href="java script:window.close();">Close This Window</a> <br> <form> <input type=button value="Close This Window" onclick="java script:window.close();"> </form> </body> </html>
#10
Re: html problem
Posted 29 June 2009 - 12:47 AM
VB.NET?? Are you by any chance using the WebBrowser control in a normal WinForms application?? That's all I can get from "im using vb.net", am I right??
If so you'll need to handle it in your form's code, not the HTML - Which makes this a VB.NET specific issue.
If so you'll need to handle it in your form's code, not the HTML - Which makes this a VB.NET specific issue.
Page 1 of 1

Start a new topic
Add Reply




MultiQuote




| 


