Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

javascript changing url in href on same page

Featured Replies

--------------------------------------------------------------------------------

 

Look at bartlettsfurniture.co.uk , when you click on the thumbnail selector you see it changes the main image on the page, the same as the thumbnail. There is also a link to

 

a supersized image page at the bottom of the large image. I want to change the URL this link visits to the corresponding supersize image url. Basically , when I ONMOUSEUP on

 

the thumbnail selector, I want to : 1. change the main image "which it does now"

2. set the url in the enlarge photo button to the corresponding supersize image pages URL.

 

At present I have set up a variable img_enlage="test.html" but this doesnt go to the url when clicked instead it goes to a page that displays "test.html" or what ever I change

 

the value of the variable to, and doesnt take me to the test page.

 

Also I need to change the variable value when I onmouseup to table1_1.html , table1_2.html , table1_3.html , table1_4.html.

 

Am I on the right track, I was feeling pretty cleaver when I got some of it working, now I'm swearing at the cat!!!!

 

PLEASE HELP ME

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.