Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Javascript Question

 
   Web Hosting and Web Master Forums (Home) -> Webmaster RSS
Next:  How to "stream" AVI files?  
Author Message
sharif

External


Since: Jun 28, 2003
Posts: 55



(Msg. 1) Posted: Fri Jul 18, 2003 1:14 am
Post subject: Javascript Question
Archived from groups: alt>www>webmaster (more info?)

You know how some links have javascript embedded in them? Like <a
href="javascript:history.go(-1)"></a>... Would this still work if javascript
is disabled?
--
Sharif Tanvir Karim
http://www.onlyonxbox.net

 >> Stay informed about: Javascript Question 
Back to top
Login to vote
davidvb

External


Since: Jun 28, 2003
Posts: 114



(Msg. 2) Posted: Fri Jul 18, 2003 11:41 am
Post subject: Re: Javascript Question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Notorious Sharif wrote:

 > You know how some links have javascript embedded in them? Like <a
 > href="javascript:history.go(-1)"></a>... Would this still work if javascript
 > is disabled?

Nope. In fact it would be a benefit to humanity if that code didn't work
full stop. I hope you aren't intending to make a back button...<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Javascript Question 
Back to top
Login to vote
sharif

External


Since: Jun 28, 2003
Posts: 55



(Msg. 3) Posted: Fri Jul 18, 2003 11:41 am
Post subject: Re: Javascript Question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

While shouting G-UNIT, David Venn-Brown wrote this:
 > Notorious Sharif wrote:
 >
  > > You know how some links have javascript embedded in them? Like <a
  > > href="javascript:history.go(-1)"></a>... Would this still work if
  > > javascript is disabled?
 >
 > Nope. In fact it would be a benefit to humanity if that code didn't
 > work
 > full stop. I hope you aren't intending to make a back button...

Actually am using it as a back button... what are other alternatives?

--
Sharif Tanvir Karim
<a style='text-decoration: underline;' href="http://www.onlyonxbox.net" target="_blank">http://www.onlyonxbox.net</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Javascript Question 
Back to top
Login to vote
user104

External


Since: Jun 28, 2003
Posts: 1662



(Msg. 4) Posted: Fri Jul 18, 2003 11:41 am
Post subject: Re: Javascript Question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"David Venn-Brown" <davidvb.DeleteThis@ozemail.com.au> wrote in message
news:zzFRa.8$vD1.139@nnrp1.ozemail.com.au...
 > Notorious Sharif wrote:
 >
  > > You know how some links have javascript embedded in them? Like <a
  > > href="javascript:history.go(-1)"></a>... Would this still work if
javascript
  > > is disabled?
 >
 > Nope. In fact it would be a benefit to humanity if that code didn't work
 > full stop. I hope you aren't intending to make a back button...

For a back button it's better than nothing. 99% [1] of your visitors will
be able to use it anyway.

[1] As near as makes no difference guess at the number of surfers using IE
and Javascript enabled.
--
Charles Sweeney
<a style='text-decoration: underline;' href="http://www.CharlesSweeney.com" target="_blank">www.CharlesSweeney.com</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Javascript Question 
Back to top
Login to vote
ngx

External


Since: Jun 28, 2003
Posts: 578



(Msg. 5) Posted: Fri Jul 18, 2003 11:41 am
Post subject: Re: Javascript Question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Notorious Sharif wrote:
 > While shouting G-UNIT, David Venn-Brown wrote this:
  >> Notorious Sharif wrote:
  >>
   >>> You know how some links have javascript embedded in them? Like <a
   >>> href="javascript:history.go(-1)"></a>... Would this still work if
   >>> javascript is disabled?
  >>
  >> Nope. In fact it would be a benefit to humanity if that code didn't
  >> work
  >> full stop. I hope you aren't intending to make a back button...
 >
 > Actually am using it as a back button... what are other alternatives?

upgrade to a browser that has a back button - there's a few around now ;o)

--
William Tasso - <a style='text-decoration: underline;' href="http://www.WilliamTasso.com" target="_blank">http://www.WilliamTasso.com</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Javascript Question 
Back to top
Login to vote
davidvb

External


Since: Jun 28, 2003
Posts: 114



(Msg. 6) Posted: Fri Jul 18, 2003 11:54 am
Post subject: Re: Javascript Question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Notorious Sharif wrote:

 > While shouting G-UNIT, David Venn-Brown wrote this:
 >
  >>Notorious Sharif wrote:
  >>
  >>
   >>>You know how some links have javascript embedded in them? Like <a
   >>>href="javascript:history.go(-1)"></a>... Would this still work if
   >>>javascript is disabled?
  >>
  >>Nope. In fact it would be a benefit to humanity if that code didn't
  >>work
  >>full stop. I hope you aren't intending to make a back button...
 >
 >
 > Actually am using it as a back button... what are other alternatives?

As William said.

If you are really needing it for some navigation within your site, I'm
sure you could work out a simple PHP script. I dunno how accurate
HTTP_REFFERER or whatever it is, is, but you could possible use that,
and/or sessions, and/or url encoding.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Javascript Question 
Back to top
Login to vote
sharif

External


Since: Jun 28, 2003
Posts: 55



(Msg. 7) Posted: Fri Jul 18, 2003 11:54 am
Post subject: Re: Javascript Question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

While shouting G-UNIT, David Venn-Brown wrote this:
 > Notorious Sharif wrote:
 >
  > > While shouting G-UNIT, David Venn-Brown wrote this:
  > >
   > >>Notorious Sharif wrote:
   > >>
   > >>
   > >>>You know how some links have javascript embedded in them? Like <a
   > >>>href="javascript:history.go(-1)"></a>... Would this still work if
   > >>>javascript is disabled?
   > >>
   > >>Nope. In fact it would be a benefit to humanity if that code didn't
   > >>work
   > >>full stop. I hope you aren't intending to make a back button...
  > >
  > >
  > > Actually am using it as a back button... what are other
  > > alternatives?
 >
 > As William said.
 >
 > If you are really needing it for some navigation within your site, I'm
 > sure you could work out a simple PHP script. I dunno how accurate
 > HTTP_REFFERER or whatever it is, is, but you could possible use that,
 > and/or sessions, and/or url encoding.

I mean I could always turn to PHP but was just looking for some HTML based
methods first.

--
Sharif Tanvir Karim
<a style='text-decoration: underline;' href="http://www.onlyonxbox.net" target="_blank">http://www.onlyonxbox.net</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Javascript Question 
Back to top
Login to vote
user104

External


Since: Jun 28, 2003
Posts: 1662



(Msg. 8) Posted: Fri Jul 18, 2003 11:54 am
Post subject: Re: Javascript Question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"David Venn-Brown" <davidvb.TakeThisOut@ozemail.com.au> wrote in message
news:NLFRa.16$vD1.691@nnrp1.ozemail.com.au...

 > If you are really needing it for some navigation within your site, I'm
 > sure you could work out a simple PHP script. I dunno how accurate
 > HTTP_REFFERER or whatever it is, is, but you could possible use that,
 > and/or sessions, and/or url encoding.

Or a simple javascript back button.

Some browsers don't have back buttons, like the webphone in my local
shopping centre where I sometimes test sites.
--
Charles Sweeney
<a style='text-decoration: underline;' href="http://www.CharlesSweeney.com" target="_blank">www.CharlesSweeney.com</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Javascript Question 
Back to top
Login to vote
davidvb

External


Since: Jun 28, 2003
Posts: 114



(Msg. 9) Posted: Fri Jul 18, 2003 12:00 pm
Post subject: Re: Javascript Question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Notorious Sharif wrote:

 > While shouting G-UNIT, David Venn-Brown wrote this:
 >
  >>Notorious Sharif wrote:
  >>
  >>
   >>>While shouting G-UNIT, David Venn-Brown wrote this:
   >>>
   >>>
   >>>>Notorious Sharif wrote:
   >>>>
   >>>>
   >>>>
   >>>>>You know how some links have javascript embedded in them? Like <a
   >>>>>href="javascript:history.go(-1)"></a>... Would this still work if
   >>>>>javascript is disabled?
   >>>>
   >>>>Nope. In fact it would be a benefit to humanity if that code didn't
   >>>>work
   >>>>full stop. I hope you aren't intending to make a back button...
   >>>
   >>>
   >>>Actually am using it as a back button... what are other
   >>>alternatives?
  >>
  >>As William said.
  >>
  >>If you are really needing it for some navigation within your site, I'm
  >>sure you could work out a simple PHP script. I dunno how accurate
  >>HTTP_REFFERER or whatever it is, is, but you could possible use that,
  >>and/or sessions, and/or url encoding.
 >
 >
 > I mean I could always turn to PHP but was just looking for some HTML based
 > methods first.

Nope. Client side methods are only reliable insofar as they suck.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Javascript Question 
Back to top
Login to vote
noonehere

External


Since: Jul 10, 2003
Posts: 7



(Msg. 10) Posted: Fri Jul 18, 2003 5:50 pm
Post subject: Re: Javascript Question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Thu, 17 Jul 2003 22:14:55 GMT, "Notorious Sharif"
<sharif.TakeThisOut@nyc.rr.com> wrote:

 >You know how some links have javascript embedded in them? Like <a
 >href="javascript:history.go(-1)"></a>... Would this still work if javascript
 >is disabled?

You might want to consider something more like this -
(Qualifier: it's early, I'm on my first cup of joe, and I don't
feel like thinking much):

<a href="someplaceToGo.htm" onClick="history.go(-1);return false">
the link</a>

The onClick will be triggered in most JS capable browsers and will
do the back function. The return false at the end will tell the
browser not to execute the href. Since only 99% of users will get
the JS to run, you need to put a link in the href for the other 1%.
I'm not sure where you want to send them as a default.

Also, keep in mind that this will send them back off your site if
they came in from an external page.

Bob<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Javascript Question 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Help! Netscape Trouble with Javascript - Hi, I hope this problem I ran into has an easy fix. I created a menu bar for my page using Sothink DHTML Menu 4.1 which created javascript file. I also add a small slide show on the page using javascript and the javascript is embedded in this page's...

JavaScript submit forms with email???? - does anyone know how should I do this??? Im not so good in JS

alignment question - Okay Im in the process of making a website. Im making the main page in photoshop and then ill cut out the pieces and form a webpage like I always do. Anyway, I have a picture of an earth on a box that goes into 2 other boxes with gaps in between. Would I...

Fair Use Question? - I found this [http://blinkynet.net/spag/disc1.html] on Blinky's site and, besides pissing my pants and wiping the tears from my eyes, a question popped into my head. Since the disclaimer is entirely compiled of common phrases, would replication of th...

webdesign question - Can anyone tell me if it's possible to put the enlargment of the photo's in the scrollbar in the table left to it? And if it's possible, how? http://www.strippersonline.nl/nieuw/fotos1.htm I thought I might have to insert a frame, but I'm not sure and I....
   Web Hosting and Web Master Forums (Home) -> Webmaster All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]