School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

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




html problem

 

html problem

jelyn

21 Jun, 2009 - 05:21 AM
Post #1

New D.I.C Head
*

Joined: 8 Apr, 2009
Posts: 15

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.

User is offlineProfile CardPM
+Quote Post


Nykc

RE: Html Problem

21 Jun, 2009 - 05:32 AM
Post #2

This script is cheap!
Group Icon

Joined: 14 Sep, 2007
Posts: 6,475



Thanked: 43 times
Dream Kudos: 325
My Contributions
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 Jun, 2009 - 05:36 AM
User is offlineProfile CardPM
+Quote Post

jelyn

RE: Html Problem

21 Jun, 2009 - 05:38 AM
Post #3

New D.I.C Head
*

Joined: 8 Apr, 2009
Posts: 15

QUOTE(Nykc @ 21 Jun, 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>



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..
User is offlineProfile CardPM
+Quote Post

Nykc

RE: Html Problem

21 Jun, 2009 - 05:45 AM
Post #4

This script is cheap!
Group Icon

Joined: 14 Sep, 2007
Posts: 6,475



Thanked: 43 times
Dream Kudos: 325
My Contributions
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.

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

User is offlineProfile CardPM
+Quote Post

jelyn

RE: Html Problem

21 Jun, 2009 - 05:52 AM
Post #5

New D.I.C Head
*

Joined: 8 Apr, 2009
Posts: 15

QUOTE(Nykc @ 21 Jun, 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.

CODE
<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.
User is offlineProfile CardPM
+Quote Post

Nykc

RE: Html Problem

23 Jun, 2009 - 06:09 AM
Post #6

This script is cheap!
Group Icon

Joined: 14 Sep, 2007
Posts: 6,475



Thanked: 43 times
Dream Kudos: 325
My Contributions
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 Jun, 2009 - 06:10 AM
User is offlineProfile CardPM
+Quote Post

jelyn

RE: Html Problem

24 Jun, 2009 - 05:02 AM
Post #7

New D.I.C Head
*

Joined: 8 Apr, 2009
Posts: 15

QUOTE(Nykc @ 23 Jun, 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?



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.
CODE

<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.
User is offlineProfile CardPM
+Quote Post

ayman_mastermind

RE: Html Problem

28 Jun, 2009 - 06:12 AM
Post #8

human.setType("geek");
Group Icon

Joined: 12 Dec, 2008
Posts: 1,807



Thanked: 92 times
Dream Kudos: 525
My Contributions
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

<script LANGUAGE="VBScript">
<!--
Sub Button1_OnClick
        document.location = "http://www.google.com"
End Sub
-->
</SCRIPT>

Code for your input button:
CODE

<FORM><INPUT NAME="Button1" TYPE="BUTTON" VALUE="Click Here"></FORM>

And here is a working example of the code that was mentioned above:
CODE

<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 wink2.gif

This post has been edited by ayman_mastermind: 28 Jun, 2009 - 06:25 AM
User is offlineProfile CardPM
+Quote Post

hadi_php

RE: Html Problem

28 Jun, 2009 - 08:41 AM
Post #9

D.I.C Regular
***

Joined: 23 Aug, 2008
Posts: 259



Thanked: 5 times
My Contributions
try this

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

User is online!Profile CardPM
+Quote Post

RudiVisser

RE: Html Problem

29 Jun, 2009 - 12:47 AM
Post #10

.. does not guess solutions
Group Icon

Joined: 5 Jun, 2009
Posts: 1,872



Thanked: 137 times
Dream Kudos: 125
Expert In: PHP, MySQL, HTML, CSS, C#

My Contributions
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.
User is offlineProfile CardPM
+Quote Post

jelyn

RE: Html Problem

30 Jun, 2009 - 05:47 PM
Post #11

New D.I.C Head
*

Joined: 8 Apr, 2009
Posts: 15

wow thank you guys.

i will try all of your suggestions..

huhuhu..i hope it will works..thanksz
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/8/09 02:09AM

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