Author Topic: Popup box in HTML  (Read 1349 times)

Offline hallmark

  • ~
  • RootsChat Marquessate
  • ****
  • Posts: 17,525
    • View Profile
Re: Popup box in HTML
« Reply #9 on: Friday 29 March 19 21:41 GMT (UK) »



"He" said that he did not want to "delve into the black arts"     
"He" doesn't have to . . . ..


There was not a full reqt spec, just a brief outline.

All 4 answers move him forward     
Why not let "him" review the suggestions?




Exactly!


Give a man a record and you feed him for a day.
Teach a man to research, and you feed him for a lifetime.

Online Malcolm Bull

  • RootsChat Veteran
  • *****
  • Posts: 885
    • View Profile
Re: Popup box in HTML *COMPLETED*
« Reply #10 on: Saturday 30 March 19 09:07 GMT (UK) »
Ray's answer seems to fit the bill, thanks Ray.

The reason I needed such a solution was that actions such as "hover over a link" (which use the ACRONYM tag to display a brief text) don't work when someone is viewing my website on an Ipad or an Iphone.

Best wishes and thanks to all responded

Malcolm Bull

Surname interests:

Huntingdon: Bull / Shelford
Rotherham: Andrews / Steel
Easingwold: Snowball / Potter

Offline hallmark

  • ~
  • RootsChat Marquessate
  • ****
  • Posts: 17,525
    • View Profile
Re: Popup box in HTML
« Reply #11 on: Saturday 30 March 19 09:39 GMT (UK) »


It certainly isn't easy with so many devices around!   :D
Give a man a record and you feed him for a day.
Teach a man to research, and you feed him for a lifetime.

Offline arthurk

  • RootsChat Marquessate
  • *******
  • Posts: 5,182
    • View Profile
Re: Popup box in HTML
« Reply #12 on: Saturday 30 March 19 11:02 GMT (UK) »
Glad you're sorted, Malcolm.

Having had more time to look at this, I was wrong about onclick requiring Javascript. I've added a suitable note to my reply #5 above.
Researching among others:
Bartle, Bilton, Bingley, Campbell, Craven, Emmott, Harcourt, Hirst, Kellet(t), Kennedy,
Meaburn, Mennile/Meynell, Metcalf(e), Palliser, Robinson, Rutter, Shipley, Stow, Wilkinson

Census information is Crown Copyright, from www.nationalarchives.gov.uk


Online Malcolm Bull

  • RootsChat Veteran
  • *****
  • Posts: 885
    • View Profile
Re: Popup box in HTML
« Reply #13 on: Saturday 30 March 19 15:08 GMT (UK) »
I looked around a bit and finally settled on the code

<input type="image" src="ggg.gif" onclick="confirm('xxxxxx');"

which allows me to display an icon (instead of the message button) and it appears to work well.

Thanks again to everyone for their help.

M
Surname interests:

Huntingdon: Bull / Shelford
Rotherham: Andrews / Steel
Easingwold: Snowball / Potter

Offline trystan

  • Administrator
  • RootsChat Marquessate
  • ********
  • Posts: 14,148
  • RootsChat Co-founder
    • View Profile
Re: Popup box in HTML
« Reply #14 on: Friday 05 April 19 23:19 BST (UK) »
allow the website-user to click a link which will display a popup window with a simple piece of text and then (having read the text) allow the user to dismiss the popup window? 

Malcolm,

Very simply, let's say you want somebody to click on a link to take them to a little help page:

Code: [Select]
<a href="https://malcolmbullwesite.page/help.html" target="_blank">Malcolm Help Page</a>
With this, when somebody clicks on the link, it will appear in a new window (the target="_blank" does that).

Then on the page that you want to read, you give add this for them to be able to close it:

Code: [Select]
<a href="JavaScript:window.close()">Close</a>

Trystan

Edited to add: No that close bit no longer works I've just tried it.

Send RootsChat a postcard:
RootsChat.com, Europa House, Barcroft Street, Bury, Lancashire, BL9 5BT
Admin Tip: Forgotten your Username or Password and would like to reply to one of these messages?  CLICK HERE to get a reminder.
AOL Users: You may need to 'cut and paste' any links you get in emails for them to work.