Flower Dew

lunamilk.neocities.org

62,369 views
76 followers
6,816 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 2 months 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 2 months ago

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

1 like
lunamilk's avatar lunamilk 2 months ago

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

1 like
sunfishdreamworld's avatar sunfishdreamworld 2 months 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 2 months 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 2 months 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 2 months ago

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

lunamilk's avatar lunamilk 2 months ago

Got it figured out everyone! Thank you so much!!! That was a journey....

Website Stats

Last updated 4 weeks ago
CreatedNov 28, 2023
Site Traffic Stats

Tags

art ocs personal music blog