School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!
You're Browsing As A Guest! Register Now...
Become an Expert!

Join 357,970 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,564 people online right now.Registration is fast and FREE... Join Now!



html problem

html problem

#1 jelyn  Icon User is offline

  • New D.I.C Head
  • Pip

Reputation: 0
  • View blog
  • Posts: 15
  • Joined: 08-April 09


Dream Kudos: 0

Post icon  Posted 21 June 2009 - 05:21 AM

hi i just wanna ask if anyone here know's the code
of html exit. i tried to search it but then i can't find the code for that.
i wish someone could help me here. i just need the html code
for the exit. thank you.
Was This Post Helpful? 0
  • +
  • -


#2 Nykc  Icon User is online

  • Gentleman of Leisure
  • Icon

Reputation: 87
  • View blog
  • Posts: 7,083
  • Joined: 14-September 07


Dream Kudos: 375

Re: html problem

Posted 21 June 2009 - 05:32 AM

HTML is a markup language, not server side code.

You cannot just exit it like PHP or ASP

edit -To close HTML </HTML>

This post has been edited by Nykc: 21 June 2009 - 05:36 AM

Was This Post Helpful? 0
  • +
  • -

#3 jelyn  Icon User is offline

  • New D.I.C Head
  • Pip

Reputation: 0
  • View blog
  • Posts: 15
  • Joined: 08-April 09


Dream Kudos: 0

Re: html problem

Posted 21 June 2009 - 05:38 AM

View PostNykc, on 21 Jun, 2009 - 05:32 AM, said:

HTML is a markup language, not server side code.

You cannot just exit it like PHP or ASP

edit -To close HTML </HTML>



i mean for example whenu click the home
button in my website...the site will close and then
it will bring you in the main form..
Was This Post Helpful? 0
  • +
  • -

#4 Nykc  Icon User is online

  • Gentleman of Leisure
  • Icon

Reputation: 87
  • View blog
  • Posts: 7,083
  • Joined: 14-September 07


Dream Kudos: 375

Re: html problem

Posted 21 June 2009 - 05:45 AM

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.

<a href="index.html"><img src="logo.jpg" border="0"></a>

Was This Post Helpful? 0
  • +
  • -

#5 jelyn  Icon User is offline

  • New D.I.C Head
  • Pip

Reputation: 0
  • View blog
  • Posts: 15
  • Joined: 08-April 09


Dream Kudos: 0

Re: html problem

Posted 21 June 2009 - 05:52 AM

View PostNykc, 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.

<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.
Was This Post Helpful? 0
  • +
  • -

#6 Nykc  Icon User is online

  • Gentleman of Leisure
  • Icon

Reputation: 87
  • View blog
  • Posts: 7,083
  • Joined: 14-September 07


Dream Kudos: 375

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?

This post has been edited by Nykc: 23 June 2009 - 06:10 AM

Was This Post Helpful? 0
  • +
  • -

#7 jelyn  Icon User is offline

  • New D.I.C Head
  • Pip

Reputation: 0
  • View blog
  • Posts: 15
  • Joined: 08-April 09


Dream Kudos: 0

Re: html problem

Posted 24 June 2009 - 05:02 AM

View PostNykc, 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?



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.
Was This Post Helpful? 0
  • +
  • -

#8 ayman_mastermind  Icon User is offline

  • human.setType("geek");
  • Icon

Reputation: 102
  • View blog
  • Posts: 1,840
  • Joined: 12-December 08


Dream Kudos: 525

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:
<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

Was This Post Helpful? 0
  • +
  • -

#9 hadi_php  Icon User is offline

  • D.I.C Regular
  • PipPipPip

Reputation: 8
  • View blog
  • Posts: 319
  • Joined: 23-August 08


Dream Kudos: 0

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>

Was This Post Helpful? 0
  • +
  • -

#10 RudiVisser  Icon User is offline

  • .. does not guess solutions
  • Icon

Reputation: 141
  • View blog
  • Posts: 1,931
  • Joined: 05-June 09


Dream Kudos: 150

Expert In: PHP, MySQL, HTML, CSS, C#

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.
Was This Post Helpful? 0
  • +
  • -

#11 jelyn  Icon User is offline

  • New D.I.C Head
  • Pip

Reputation: 0
  • View blog
  • Posts: 15
  • Joined: 08-April 09


Dream Kudos: 0

Re: html problem

Posted 30 June 2009 - 05:47 PM

wow thank you guys.

i will try all of your suggestions..

huhuhu..i hope it will works..thanksz
Was This Post Helpful? 0
  • +
  • -



Fast Reply

  

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month