Flower Dew

lunamilk.neocities.org

55,714 views
59 followers
6,762 updates
0 tips
does anyone know how to stop a link opening within the iframe when clicked? i have tried all the target attributes, like _self, _parent, etc, but I just cant seem to get this right.
2 likes
fuwaka's avatar fuwaka 1 day ago

perhaps try making sure there’s no attribute before or inside of the iframe! also remove any closing tags like

1 like
fuwaka's avatar fuwaka 1 day ago

neocities won’t let me type a href in brackets, but that’s what i meant sorry >< !

1 like
lunamilk's avatar lunamilk 1 day ago

Could you give me an example please? Ive been dying on the floor from this iframe stuff!!!!

1 like
sunfishdreamworld's avatar sunfishdreamworld 20 hours ago

Have you tried "_top"? Not sure if it would work. I think I had this issue forever ago when I used to use iframes, I can't remember my fix, but if you have multiple iframes going on or depending on where they're placed, that might be the issue

sunfishdreamworld's avatar sunfishdreamworld 20 hours ago

Depending on what you're trying to do/if you're interested, I had a lot of issues with iframes but switched to using a tab system using JavaScript. It was a little confusing setting it up forever ago, but I haven't had many issues with it since.

phelah's avatar phelah 18 hours ago

_top works for me. Though I use _blank if I want it to open in a new tab (sorry if oyu already knew that)

moonflyxspace's avatar moonflyxspace 9 hours ago

can you maybe send what the iframe looks in the code?

Website Stats

Last updated 1 day ago
CreatedNov 28, 2023
Site Traffic Stats

Tags

art ocs